package com.creative.accountsdk.bean;

import org.json.JSONObject;

/**
 * Created by david on 15/11/27.
 */
public class StudentInfo implements Cloneable{
    public long     id;        //学生Id
    public String   alias;      //学生名
    public String   avatr;     //学生头像

    public Object clone() {
        StudentInfo o = null;
        try {
            o = (StudentInfo) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return o;
    }

    public StudentInfo setJsonTovo(JSONObject json){
        id = json.optLong("studentId");
        alias = json.optString("studentAlias");

        return this;
    }
}
